<div class="featured">
    <?php
    if ($this->articles) {
    ?>
    <div class="f-thumbnail"> 
        <?php
        $i = 0;
        foreach($this->articles as $article){
        ?>
        <img src="<?php echo $article->thumbnail ?>" alt="<?php echo $article->title ?>" <?php echo ($i ==0) ? 'class="current"' : '' ?>/>
        <?php
        $i++;
        }
        ?>
    </div>
    <div class="f-list">
        <h2>Featured List</h2>
        <dl>
            <?php
            
            $i=0;
            foreach ($this->articles as $article){
            ?>
            <dt <?php echo ($i ==0) ? 'class="current"' : '' ?>><?php echo $article->title ?></dt>
            <dd></dd>
            <?php
            }
            
            ?>
        </dl>
    </div>

    <?php
            } else {
                echo 'Have no featured article';
            }
    ?>
</div>
